<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.0/css/line.css" />
    <script src="https://kit.fontawesome.com/1a8c6dd550.js" crossorigin="anonymous"></script>
    <title>@Syntax Station Dev Login</title>
    <style>
      @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}


body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("https://picsum.photos/1920/1080?1");
  background-position: center;
  background-size: cover;
}

/*********************************************************/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99;
}

.logo{
  font-size: 2em;
  color: #121010;
  user-select: none;
}

.navigation a{
  position: relative;
  font-size: 1.1em;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  margin-left: 40px;
}

.navigation a::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: #000000;
  transform-origin: right;
  transform: scaleX(0);
  transition: tranform 0.5s;
}

.navigation a:hover::after {
  transform: scaleX(1);
}


/**********************/

.form{
  position: relative;
  padding: 40px 30px;
  background-color: rgba(46, 43, 43, 0.222); 
  box-shadow: 0 0 10px ;
  border-radius: 20px;
}

.form h2, p, .checkbox-content label, .input-field ::placeholder{
  color: rgb(255, 255, 255);
}

.form a{
  color: rgb(210, 238, 30);
}

.input-field {
  position: relative;
  height: 50px;
  width: 100%;
  margin-top: 30px;
}


.input-field input {
  position: absolute;
  height: 100%;
  width: 100%;
  padding: 0 35px;
  border: none;
  outline: none;
  font-size: 16px;
  border-bottom: 2px solid #ccc;
  border-top: 2px solid transparent;
  transition: all 0.2s ease;
}



input[type="text"], input[type="password"] {
  background-color: transparent;
}



.input-field i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 23px;
  transition: all 0.2s ease;
}

.input-field i.showHidePassword {
  right: 0;
  cursor: pointer;
  padding: 10px;
}

.form .checkbox-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.form .button button {
  height: 50px;
  width: 350px;
  display: block;
  margin-right: auto;
  margin-left: auto;
  align-items: center;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 6px;
  background-color: #579350;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button button:hover {
  background-color: #3a8332;
}
    </style>
</head>

<body>
    <header>
        <h2 class="logo">Logo</h2>
        <div class="navigation">
            <a href="">Home</a>
            <a href="">About Us</a>
            <a href="">Services</a>
        </div>
    </header>


    <div class="form">
        <h2>Log in</h2>
        <form action="">
            <div class="input-field">
                <input type="text" placeholder="Enter your email" name="correo" required />
                <i class="fa-regular fa-envelope"></i>
            </div>
            <div class="input-field">
                <input type="password" placeholder="Enter your password" id="passwordInput" required />
                <i class="uil uil-lock icon"></i>
                <i class="fa-regular fa-eye-slash showHidePassword"></i>
            </div>
            <div class="checkbox-text">
                <div class="checkbox-content">
                    <input type="checkbox" />
                    <label for="logCheck">Remember me</label>
                </div>
                <a href="#" class="form-link">Forgot password?</a>
            </div>
            <div class="input-field button">
                <button type="submit">Log in</button>
            </div>

            <div class="login-signup">
                <p>Don't have an account yet? <a href="#">Sign up</a></p>
            </div>
        </form>
        
    </div>

    <script>
        const passwordInput = document.getElementById('passwordInput');
        const showHidePassword = document.querySelector('.showHidePassword');

        showHidePassword.addEventListener('click', () => {
            if (passwordInput.type === 'password') {
                passwordInput.type = 'text';
                showHidePassword.classList.remove('fa-eye-slash');
                showHidePassword.classList.add('fa-eye');
            } else {
                passwordInput.type = 'password';
                showHidePassword.classList.remove('fa-eye');
                showHidePassword.classList.add('fa-eye-slash');
            }
        });

    </script>
</body>

</html>